<template>
    <div style="margin-top:-10px;background-color:#f0f0f0;">     
        <el-pagination
                    @current-change="handleCurrentChange"
                    background
                    layout="total, prev, pager, next, jumper"
                    :page-size="data.pagesize"
                    :total="data.totalitem">
        </el-pagination>
    </div>
</template>

<script>
export default {
    props:{
        data:{}
    },
    methods:{
        handleCurrentChange(pIndex){
            this.$emit('current-change',pIndex);
        }
    }
};
</script>
